#include <iostream>
#include <string>
using namespace std;

int cnt = 0;
string S;

string T;
int main() {

    cin >> S;
    int n = S.size();
    T = S;

    for (int i = 0; i < n; ++i) 
    {
        if (S[i] == '#') 
        {
            cnt = 0;
        }
        else if (S[i] == '.') 
        {
            if (cnt == 0) {
                T[i] = 'o';
                cnt++;
            }
        }
    }

    cout << T << endl;
    return 0;
}